//
//  FZ_BoFang_Two_TableViewCell_Two_First_Cell.m
//  ProjectOfBStage
//
//  Created by dllo on 15/11/15.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "FZ_BoFang_Two_TableViewCell_Two_First_Cell.h"
#import "BaseHeader.h"
@interface FZ_BoFang_Two_TableViewCell_Two_First_Cell ()
@property (nonatomic , retain) UIButton *buttonRinght;
@property (nonatomic , retain) UILabel *labelName;
@property (nonatomic , retain) UIImageView *imageViewL;
@end
@implementation FZ_BoFang_Two_TableViewCell_Two_First_Cell
- (void)dealloc
{
    [_buttonRinght release];
    [_labelName release];
    [_imageViewL release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self createSubviews];
        
    }
    return self;
}
- (void)createSubviews{
    
    UIVisualEffectView *sual = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle: UIBlurEffectStyleDark]];
    sual.frame = CGRectMake(6, 6, ScreenWidth - 12, self.contentView.frame.size.height - 10);

    [self.contentView addSubview:sual];
    sual.alpha = 0.2;
    [sual release];
    self.imageViewL = [[UIImageView alloc] init];
    self.imageViewL.image = [UIImage imageNamed:@"xiangyousanjiao32.png"];
    [self.contentView addSubview:self.imageViewL];
    [_imageViewL release];
    
    self.buttonRinght = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.buttonRinght setImage:BOFANG_CELL_BUTTON forState:UIControlStateNormal];
    [self.contentView addSubview:self.buttonRinght];
    self.labelName = [[UILabel alloc] init];
    self.labelName.text = @"推荐列表";
    [_labelName setTextColor:[UIColor whiteColor]];
    _labelName.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:self.labelName];
    [_labelName release];
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageViewL.frame = CGRectMake(39 , 11 , 22 , 22 );
    //    self.imageViewL.backgroundColor = [UIColor yellowColor];
    self.labelName.frame = CGRectMake(self.imageViewL.frame.origin.x + self.imageViewL.frame.size.width + 47 , self.imageViewL.frame.origin.y, 120 , 22 );
    //    self.labelName.backgroundColor = [UIColor orangeColor];
    self.buttonRinght.frame = CGRectMake(self.labelName.frame.origin.x + 79 + self.labelName.frame.size.width, self.labelName.frame.origin.y+ 2, 20.f, 20.f);
    //    self.buttonRinght.backgroundColor = [UIColor yellowColor];
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
